<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
</head>
<body>
    <input type="text" id="myInput" placeholder="搜索公司..." />
<table id="myTable">
<tr class="header">
    <!--0 代表 name 字段，1 代表 url  字段-->
<th style="width: 60%" onclick="sortTable(0)">公司名称</th>
<th style="width: 40%" onclick="sortTable(1)">国家</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Germany</td>
</tr>
<tr>
<td>Island Trading</td>
<td>UK</td>
</tr>
<tr>
    <td>Berglunds snabbkop</td>
    <td>Sweden</td>
    </tr>
<tr>
<td>Koniglich Essen</td>
<td>Germany</td>
</tr>
</table>
        <script src="./index.js"></script>
</body>
</html>